﻿using LitJson;

namespace TableCore.Plugin
{
    public class CsharpBoolFormatter : IGenFormatter
    {
        public bool IsValid(string input)
        {
            string str = input.ToLower();
            return str == "true" || str == "false";
        }

        public JsonData Format(GTFile.Content content, string input, string cellName, string comment)
        {
            return input.ToLower() == "true" ? true : false;
        }

        public IExportData ExportData(GTFile.Content content, string input, string cellName, string comment)
        {
            return null;
        }
    }
}
